package com.face.managesystem.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 用户考勤 表。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAttendance {
    /**
     * 员工编号
     */
    private String userID;
    /**
     * 考勤时间
     */
    private Date signInDate;
    private static final DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");


    public String getRegisterDate() {
        return df.format(signInDate);
    }
    @Override
    public String toString() {
        return "UserAttendance{" +
                "userID='" + userID + '\'' +
                ", signInDate=" + signInDate +
                '}';
    }
}
